package com.xpsoft.oa.model.produce;


import com.google.gson.annotations.Expose;
import com.xpsoft.oa.model.system.AppUser;
import com.xpsoft.oa.model.system.Department;

/**
 * MaterialAllocation Base Java Bean, base class for the.oa.model, mapped directly to database table
 * 
 * Avoid changing this file if not necessary, will be overwritten. 
 *
 * TODO: add class/table comments
 */
public class MaterialAllocation extends com.xpsoft.core.model.BaseModel {

	@Expose
    protected Long id;  
	@Expose
	protected Department fromDept;
	@Expose
	protected AppUser operator;
	@Expose
	protected Department toDept;
	@Expose
	protected AppUser receiverUser;
	@Expose
	protected java.util.Date fromDate;
	@Expose
	protected java.util.Date toDate;
	@Expose
	protected String reason;
	@Expose
	protected Long processRunId;


	/**
	 * Default Empty Constructor for class MaterialAllocation
	 */
	public MaterialAllocation () {
		super();
	}
	
	/**
	 * Default Key Fields Constructor for class MaterialAllocation
	 */
	public MaterialAllocation (
		 Long in_id
        ) {
		this.setId(in_id);
    }

    

	/**
	 * 	 * @return Long
     * @hibernate.id column="id" type="java.lang.Long" generator-class="native"
	 */
	public Long getId() {
		return this.id;
	}
	
	/**
	 * Set the id
	 */	
	public void setId(Long aValue) {
		this.id = aValue;
	}	


	public Long getProcessRunId() {
		return processRunId;
	}

	public void setProcessRunId(Long processRunId) {
		this.processRunId = processRunId;
	}

	public Department getFromDept() {
		return fromDept;
	}

	public void setFromDept(Department fromDept) {
		this.fromDept = fromDept;
	}

	public AppUser getOperator() {
		return operator;
	}

	public void setOperator(AppUser operator) {
		this.operator = operator;
	}

	public Department getToDept() {
		return toDept;
	}

	public void setToDept(Department toDept) {
		this.toDept = toDept;
	}

	public AppUser getReceiverUser() {
		return receiverUser;
	}

	public void setReceiverUser(AppUser receiverUser) {
		this.receiverUser = receiverUser;
	}

	/**
	 * 调出日期	 * @return java.util.Date
	 * @hibernate.property column="fromDate" type="java.util.Date" length="19" not-null="false" unique="false"
	 */
	public java.util.Date getFromDate() {
		return this.fromDate;
	}
	
	/**
	 * Set the fromDate
	 */	
	public void setFromDate(java.util.Date aValue) {
		this.fromDate = aValue;
	}	

	/**
	 * 接收日期	 * @return java.util.Date
	 * @hibernate.property column="toDate" type="java.util.Date" length="19" not-null="false" unique="false"
	 */
	public java.util.Date getToDate() {
		return this.toDate;
	}
	
	/**
	 * Set the toDate
	 */	
	public void setToDate(java.util.Date aValue) {
		this.toDate = aValue;
	}	

	/**
	 * 调拨原因	 * @return String
	 * @hibernate.property column="reason" type="java.lang.String" length="65535" not-null="false" unique="false"
	 */
	public String getReason() {
		return this.reason;
	}
	
	/**
	 * Set the reason
	 */	
	public void setReason(String aValue) {
		this.reason = aValue;
	}	

}
